﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="PersonInfoWork.aspx.cs" Inherits="App_Input_PersonInfoWork" Title="员工个人信息" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<cc1:ComValidator ID="ComValidator3" runat="server" CheckItems-Capacity="8" Visible="false">
                                                              <cc1:CheckRequiredAttribute Code="E0094" ControlToValidator="workBegin">
                                                                  <cc1:ComAbsParamsAttribute Parameter="开始时间" />
                                                              </cc1:CheckRequiredAttribute>
                                                             <cc1:CheckDateAttribute Code="E0034" ControlToValidator="workBegin" DataFormat="yyyy/mm/dd">
                                                                 <cc1:ComAbsParamsAttribute Parameter="开始时间" />
                                                             </cc1:CheckDateAttribute>
                                                              <cc1:CheckRequiredAttribute Code="E0094" ControlToValidator="workEnd">
                                                                  <cc1:ComAbsParamsAttribute Parameter="结束时间" />
                                                              </cc1:CheckRequiredAttribute>
                                                             <cc1:CheckDateAttribute Code="E0034" ControlToValidator="workEnd" DataFormat="yyyy/mm/dd">
                                                                 <cc1:ComAbsParamsAttribute Parameter="结束时间" />
                                                             </cc1:CheckDateAttribute>
                                                              <cc1:CheckDateRangeAttribute Code="E0330" ControlToValidator1="workBegin" ControlToValidator2="workEnd">
                                                                  <cc1:ComAbsParamsAttribute Parameter="开始时间" />
                                                                  <cc1:ComAbsParamsAttribute Parameter="结束时间" />
                                                              </cc1:CheckDateRangeAttribute>
                                                              <cc1:CheckRequiredAttribute Code="E0094" ControlToValidator="company">
                                                                  <cc1:ComAbsParamsAttribute Parameter="服务机构" />
                                                              </cc1:CheckRequiredAttribute>
                                                          </cc1:ComValidator>
    <div>
        <div id="container">
            <div id="title">
                <ul>
                    <li id="tag1">
                        <asp:LinkButton ID="LinkButton1" OnCommand="lnkTab_Command" CommandName="btn0" runat="server"><span>基本信息</span></asp:LinkButton>
                    </li>
                    <li id="tag2">
                        <asp:LinkButton ID="LinkButton2" OnCommand="lnkTab_Command" CommandName="btn1" runat="server"><span>学历</span></asp:LinkButton>
                    </li>
                    <li id="tag4">
                        <asp:LinkButton ID="LinkButton4" OnCommand="lnkTab_Command" CommandName="btn3" runat="server"
                            CssClass="selectli" OnClientClick="return false;"><span class="selectspan">工作经历</span></asp:LinkButton>
                    </li>
                    <li id="tag3">
                        <asp:LinkButton ID="LinkButton3" OnCommand="lnkTab_Command" CommandName="btn2" runat="server"><span>家庭情况</span></asp:LinkButton>
                    </li>
                    <li id="tag5">
                        <asp:LinkButton ID="LinkButton5" OnCommand="lnkTab_Command" CommandName="btn4" runat="server"><span>福利</span></asp:LinkButton>
                    </li>
                    <li id="tag6">
                        <asp:LinkButton ID="LinkButton6" runat="server" CommandName="btn5" OnCommand="lnkTab_Command"><span>薪酬信息</span></asp:LinkButton>
                    </li>
                    <li id="tag7">
                        <asp:LinkButton ID="LinkButton7" runat="server" CommandName="btn6" OnCommand="lnkTab_Command"><span>奖惩纪录</span></asp:LinkButton>
                    </li>
                    <li id="tag8">
                        <asp:LinkButton ID="LinkButton8" OnCommand="lnkTab_Command" CommandName="btn7" runat="server"><span>报到准备</span></asp:LinkButton>
                    </li> 
                     <li id="tag9">
                        <asp:LinkButton ID="LinkButton9" OnCommand="lnkTab_Command" CommandName="btn8" runat="server"><span>培训申请</span></asp:LinkButton>
                    </li> 
                </ul>
            </div>
            <div id="content" class="content1">
                <table class="table_border_line">
                    <tr>
                        <td>
                            <asp:GridView ID="GridView2" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                CssClass="GridView_table" OnPageIndexChanging="GridView2_PageIndexChanging" OnRowDeleting="GridView2_OnRowDeleting"
                                OnRowEditing="GridView2_OnRowEditing" OnRowDataBound="GridView2_RowDataBound">
                                <Columns>
                                    <asp:BoundField DataField="BeginDate" DataFormatString="{0:yyyy/MM/dd}" HeaderText="开始时间"
                                        HtmlEncode="False">
                                        <ItemStyle CssClass="GridView_item_center" />
                                        <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="EndDate" DataFormatString="{0:yyyy/MM/dd}" HeaderText="结束时间"
                                        HtmlEncode="False">
                                        <ItemStyle CssClass="GridView_item_center" />
                                        <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Company" HeaderText="服务机构">
                                        <ItemStyle CssClass="GridView_item_center" />
                                        <HeaderStyle CssClass="GridView_head_grayblue" Width="20%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Position" HeaderText="担任职位">
                                        <ItemStyle CssClass="GridView_item_center" />
                                        <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Salary" HeaderText="薪资">
                                        <ItemStyle CssClass="GridView_item_center" />
                                        <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Dimission" HeaderText="离职原因">
                                        <ItemStyle CssClass="GridView_item_center" />
                                        <HeaderStyle CssClass="GridView_head_grayblue" Width="20%" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="证明人及电话" DataField="Attestor">
                                        <ItemStyle CssClass="GridView_item_center" />
                                        <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                                    </asp:BoundField>
                                    <asp:CommandField ButtonType="Image" EditImageUrl="~/images/edit.jpg" EditText="编辑"
                                        HeaderText="编辑" ShowEditButton="True">
                                        <HeaderStyle CssClass="GridView_head_grayblue" />
                                        <ItemStyle CssClass="GridView_item_center" Width="5%" />
                                    </asp:CommandField>
                                    <asp:TemplateField HeaderText="删除" ShowHeader="False">
                                        <ItemStyle CssClass="GridView_item_center" />
                                        <HeaderStyle CssClass="GridView_head_grayblue" Width="5%" />
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                                ImageUrl="~/images/delete.jpg" OnClientClick="return confirm('确定删除吗？')" Text="" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField Visible="False">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("workId") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="workId" runat="server" Text='<%# Bind("workId") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <PagerStyle HorizontalAlign="Right" />
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
                <br />
                <table border="0" cellpadding="3" cellspacing="3" width="100%">
                    <tr>
                        <td align="left" colspan="2">
                            <span id="workSpan" runat="server">新增工作经历</span></td>
                    </tr>
                    <tr>
                        <td align="center">
                            <span style="color: #ff7300">*</span>
                            时间：</td>
                        <td>
                            从
                            <asp:TextBox ID="workBegin" runat="server" CssClass="input-box" MaxLength="10" onfocus="new Calendar().show(this);"
                                Width="81px"></asp:TextBox>&nbsp; 到 &nbsp;<asp:TextBox ID="workEnd" runat="server"
                                    CssClass="input-box" MaxLength="10" onfocus="new Calendar().show(this);" Width="88px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="center" style="height: 22px">
                            <span style="color: #ff7300">*</span>
                            服务机构：</td>
                        <td style="height: 22px">
                            <asp:TextBox ID="company" runat="server" CssClass="input-box" MaxLength="10" Width="211px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            担任职位： &nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="position" runat="server" CssClass="input-box" MaxLength="10" Width="212px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            薪资：
                        </td>
                        <td>
                            <asp:TextBox ID="salary" runat="server" CssClass="input-box" MaxLength="10" Width="212px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="center">
                            离职原因： &nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="dimission" runat="server" CssClass="input-box" MaxLength="10"
                                Width="212px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            证明人及电话：</td>
                        <td>
                            <asp:TextBox ID="attestor" runat="server" CssClass="input-box" MaxLength="10" Width="212px"></asp:TextBox></td>
                    </tr>
                </table>
                <br />
                <table class="table_border_line">
                    <tr>
                        <td style="text-align: center">
                            <asp:Button ID="btnAdd" runat="server" CssClass="button" OnClick="btnAdd_Click" Text="登 记"
                                Width="89px" />&nbsp;<asp:Button ID="btnBack" runat="server" CssClass="button" Text="返 回"
                                    Width="89px" OnClick="btnBack_Click" /></td>
                    </tr>
                </table>
                
            </div>
        </div>
</asp:Content>
